/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const practiceRouter = {
  path: '/practice',
  component: Layout,
  redirect: '/practice/theses',
  name: 'practice',
  meta: { title: '实验实践', icon: 'education' },
  children: [
    {
      path: 'editThesis',
      component: () => import('@/views/theses/edit'),
      name: 'editThesis',
      meta: { title: '课题申报', icon: 'guide', roles: ['teacher', 'admin'] }
    },
    {
      path: 'theses',
      name: 'myTheses',
      component: () => import('@/views/theses/teacherTheses'),
      meta: { title: '我的课题', icon: 'list', roles: ['teacher', 'admin'] }
    },
    {
      path: 'StudentTheses',
      name: 'StudentTheses',
      component: () => import('@/views/theses/studentTheses'),
      meta: { title: '我的选课', icon: 'list', roles: ['student'] }
    },
    {
      path: 'project',
      name: 'totalThesis',
      component: () => import('@/views/project/totalTheses'),
      meta: { title: '课题统计', icon: 'list', roles: ['teacher', 'admin'] }
    },
    {
      path: 'audit',
      component: () => import('@/views/stub'),
      name: 'audit',
      meta: { title: '论文审核', icon: 'edit' }
    },
    {
      path: 'scores',
      component: () => import('@/views/stub'),
      name: 'scores',
      meta: { title: '成绩录入', icon: 'edit' }
    },
    {
      path: 'check',
      component: () => import('@/views/stub'),
      name: 'thesesCheck',
      meta: { title: '论文抽查', icon: 'edit' }
    },
    {
      path: 'experiments',
      component: () => import('@/views/stub'),
      name: 'experiments',
      meta: { title: '实验课表', icon: 'edit' }
    },
    {
      path: 'champion',
      component: () => import('@/views/stub'),
      name: 'champion',
      meta: { title: '竞赛奖励', icon: 'edit' }
    },
    {
      path: 'internship',
      component: () => import('@/views/stub'),
      name: 'internship',
      meta: { title: '实习实训', icon: 'edit' }
    }
  ]
}
export default practiceRouter
